package com.pro.service.imple;

import com.pro.mapper.JsAuditLogMapper;
import com.pro.pojo.JsApplyRecord;
import com.pro.pojo.JsAuditLog;
import com.pro.pojo.JsRole;
import com.pro.service.JsAuditLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * ClassName:JsAuditLogServiceImple
 * Package:com.pro.service.imple
 * Description:
 *
 * @Date:2021/11/27 18:11
 * @Author: ZPT
 */
@Service
public class JsAuditLogServiceImple implements JsAuditLogService {
    @Autowired(required = false)
    private JsAuditLogMapper mapper;

    @Override
    public Boolean addAuditLog(JsAuditLog jsAuditLog) {
        jsAuditLog.setCreateDate(new Date());
        return mapper.addAuditLog(jsAuditLog);
    }

    @Override
    public List<JsApplyRecord> getAuditLogUser(Integer aduitLogType, String position,String account,
                                               String fullName,String applyDate) {
        return mapper.getAuditLogUser(aduitLogType,position,account,fullName,applyDate);
    }
}
